from rest_framework import serializers
from news import models

class CateSer(serializers.ModelSerializer):
    class Meta:
        model = models.Cate
        fields = '__all__'


class NewsSer(serializers.ModelSerializer):
    class Meta:
        model = models.News
        fields = '__all__'